package com.domain;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.beanutils.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

/**
 * @Author Ms.发发
 * @ClassName HouseLeaseAnnouncementsEntuty
 * @Date 2025/2/18 10:36
 * @Description
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("discussfangwuxinxi")
public class HouseLeaseAnnouncementsEntity <T> implements Serializable {
    private static final long serialVersionUID = 1L;

    public HouseLeaseAnnouncementsEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 关联表id
     */

    private Long refid;

    /**
     * 用户id
     */

    private Long userId;

    /**
     * 用户名
     */

    private String nickName;

    /**
     * 评论内容
     */

    private String content;

    /**
     * 回复内容
     */

    private String reply;

}
